package com.joker.springcloud.service.impl;

import com.joker.springcloud.mapper.DeptMapper;
import com.joker.springcloud.pojo.Dept;
import com.joker.springcloud.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author JokerKS
 * @Date 2021/12/20 09:21
 * @Version 1.0
 */
@Service
public class DeptServiceImpl implements DeptService {

	@Autowired
	private DeptMapper deptMapper;

	@Override
	public boolean addDept(Dept dept) {
		return deptMapper.addDept(dept);
	}

	@Override
	public Dept queryById(Long id) {
		return deptMapper.queryById(id);
	}

	@Override
	public List<Dept> queryAll() {
		return deptMapper.queryAll();
	}
}
